package com.ruoyi.exam.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.exam.domain.ExamQuestionTag;
import com.ruoyi.exam.vo.ExamQuestionTagVo;
import com.ruoyi.exam.mapper.ExamQuestionTagMapper;
import com.ruoyi.exam.service.IExamQuestionTagService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 题目标签Service业务层处理
 *
 * @author Tellsea
 * @date 2025-05-30
 */
@Service
public class ExamQuestionTagServiceImpl extends ServiceImpl<ExamQuestionTagMapper, ExamQuestionTag> implements IExamQuestionTagService {

    @Override
    public TableDataInfo<ExamQuestionTagVo> queryList(ExamQuestionTagVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamQuestionTagVo> queryAll(ExamQuestionTagVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamQuestionTagVo queryById(Long tagId) {
        return this.baseMapper.queryById(tagId);
    }
}
